<g:isLoggedIn>
  <div class="nav">
    <span class="menuButton">
      <a class="home" href="${createLinkTo(dir: '')}"><g:message code="index.navbutton.home"/></a>
    </span>

    <g:ifAnyGranted role="ROLE_ADMIN,ROLE_SHOP_ASSISTANT,ROLE_MANAGER">
      <span class="menuButton">
        <g:link class="list" controller="customer" action="search"><g:message code="index.navbutton.customer.search"/></g:link>
      </span>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_ADMIN,ROLE_SHOP_ASSISTANT,ROLE_MANAGER">
      <span class="menuButton">
        <g:link class="list" controller="customer" action="create"><g:message code="index.navbutton.customer.register"/></g:link>
      </span>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_ADMIN,ROLE_MANAGER">
      <span class="menuButton">
        <g:link class="list" controller="product" action="home"><g:message code="index.navbutton.product.management"/></g:link>
      </span>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_ADMIN,ROLE_MANAGER">
      <span class="menuButton">
        <g:link class="list" controller="staff" action="home"><g:message code="index.navbutton.staff.management"/></g:link>
      </span>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_CUSTOMER">
      <span class="menuButton">
        <g:link class="list" controller="job" action="listByCurrentCustomer"><g:message code="index.navbutton.customer.jobhis"/></g:link>
      </span>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_ADMIN,ROLE_MANAGER">
      <span class="menuButton">
        <g:link class="list" url="/PhotoShop/mondrian.jsp?query=job_time"><g:message code="report.sales" default="Job Report"/></g:link>
      </span>
    </g:ifAnyGranted>

    <g:ifAnyGranted role="ROLE_ADMIN,ROLE_MANAGER">
      <span class="menuButton">
        <g:link class="list" url="/PhotoShop/mondrian.jsp?query=pay_time"><g:message code="report.pays" default="Pay Report"/></g:link>
      </span>
    </g:ifAnyGranted>

    <span class="menuButton">
      <g:link class="list" controller="logout" action="index"><g:message code="index.navbutton.logout"/></g:link>
    </span>
  </div>
</g:isLoggedIn>